//
// Created by shanshi on 17/6/2025.
//

// defining and using a reference

#include <iostream>
# if 0
int main() {
    using namespace std;
    // int rats = 107;
    // int & rodents = rats;
    // cout << "rats = " << rats;
    // cout << ", rodents = " << rodents;
    // cout << ", &rats = " << &rats;
    // cout << ", &rodents = " << &rodents << endl;
    // rodents++;
    // cout << "rats = " << rats;
    // cout << ", rodents = " << rodents << endl;

    // using namespace std;
    // int rats = 100;
    // int &rodents = rats;
    //
    // cout << "rats = " << rats;
    // cout << ", rodents = " << rodents << endl;
    // cout << ", &rats = " << &rats;
    // cout << ", &rodents = " << &rodents << endl;
    //
    // int bunnies = 50;
    // rodents = bunnies;
    // cout << "bunnies = " << bunnies;
    // cout << ", rats = " << rats;
    // cout << ", rodents = " << rodents << endl;
    //
    // cout << "bunnies address = " << &bunnies << endl;
    // cout << "rats address = " << &rats << endl;

    // 尝试修改const引用
}
#endif
